﻿@model IEnumerable<DLM.Domain.DTO.InvitationHistoryDTO>
@using Webdiyer.WebControls.Mvc;
<ul class="clearfix">
    @foreach (var item in Model)
    {
        <li class="hover">
            @if (string.IsNullOrEmpty(item.UserPhoto))
            {
                <a href="#">
                    <img src="@Url.Content("~/Files/Photos/" + item.UserID + "/Title/" + item.UserPhoto)" alt="" /></a>
            }
            else
            {
                <a href="#">
                    <img src="@Url.Content("~/Files/Party/" + item.PartyID + "/" + item.PartyPhoto)" alt="" /></a>
            }
            <p>
                <a href="#">@item.UserAccount</a></p>
            <span><a href="@Url.Action("View", "User", new { id = item.SenderID })">查看资料</a>|<a href="@Url.Action("View", "Party", new { id = item.PartyID })">查看活动</a></span>
        </li>
                
    }
</ul>
<div class="paging">
@Ajax.Pager(Model as PagedList<DLM.Domain.DTO.InvitationHistoryDTO>, new PagerOptions
{
    PageIndexParameterName = "historyid",
    CurrentPagerItemWrapperFormatString = "<span class=\"current\">{0}</span>",
    //NumericPagerItemWrapperFormatString = "<a>{0}</a>",
    PrevPageText = "<",
    NextPageText = ">",
    ShowNumericPagerItems = true,
    ShowFirstLast = false,
    ShowPrevNext = true,
    CssClass = "scott",
    MorePageText = "...",
    SeparatorHtml = ""
},
        new AjaxOptions { UpdateTargetId = "divHistory" }
    )
    </div>
